import request from './apiConfig'
const base_url = '/dept-transfer'
/**
 * 获取部门调转记录
 * @param {*} query 
 */
export function getDeptTranApi(query) {
    return request({
        url: base_url,
        method: 'GET',
        params: query,
    })
}
/**
 * 添加调转记录
 * @param {*} deptTran 
 */
export function addDeptTranApi(tranForm) {
    return request({
        url: base_url,
        method: "POST",
        data: tranForm,
    })
}

export function getDeptTransData(pId) {
    return request({
        url: `${base_url}/data/${pId}`,
        method: 'GET'
    })
}
/**
 * 删除记录
 * @param {*} id 
 */
export function delDeptTransLog(id) {
    return request({
        url: `${base_url}/${id}`,
        method: 'DELETE',
    })
}